package day20171215;

import java.io.*;
import java.util.HashMap;
import java.util.Map;

public class Test {
    public static void main(String[] args) {
        Map<String,Integer> map=new HashMap<String, Integer>();
        try {
            BufferedReader bufferedReader=new BufferedReader
                    (new FileReader("D:\\xuehao.txt"));
            String sn=null;
            while ((sn=bufferedReader.readLine())!=null){
                map.put(sn,0);
            }
            File file=new File("D:\\16级信本一班Java作业一");
            File []files=file.listFiles();
            for(File file1:files){
                String fileName=file1.getName();
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
